package androidx.preference;

import android.content.Context;
import android.os.Build;
import android.util.AttributeSet;
import android.util.TypedValue;
import android.widget.TextView;
import b.f.d.a;
import b.f.d.c.g;
import b.f.l.b0.c;

public class PreferenceCategory extends PreferenceGroup {
    public PreferenceCategory(Context context, AttributeSet attributeSet) {
        this(context, attributeSet, g.a(context, m.preferenceCategoryStyle, 16842892));
    }

    public PreferenceCategory(Context context, AttributeSet attributeSet, int i) {
        this(context, attributeSet, i, 0);
    }

    public PreferenceCategory(Context context, AttributeSet attributeSet, int i, int i2) {
        super(context, attributeSet, i, i2);
    }

    public boolean A0() {
        return !super.F();
    }

    public boolean F() {
        return false;
    }

    public void P(l lVar) {
        TextView textView;
        super.P(lVar);
        int i = Build.VERSION.SDK_INT;
        if (i >= 28) {
            lVar.f863a.setAccessibilityHeading(true);
        } else if (i < 21) {
            TypedValue typedValue = new TypedValue();
            if (i().getTheme().resolveAttribute(m.colorAccent, typedValue, true) && (textView = (TextView) lVar.M(16908310)) != null && textView.getCurrentTextColor() == a.b(i(), n.preference_fallback_accent_color)) {
                textView.setTextColor(typedValue.data);
            }
        }
    }

    @Deprecated
    public void U(c cVar) {
        c.C0044c q;
        super.U(cVar);
        if (Build.VERSION.SDK_INT < 28 && (q = cVar.q()) != null) {
            cVar.a0(c.C0044c.f(q.c(), q.d(), q.a(), q.b(), true, q.e()));
        }
    }
}
